<template>
    <div class="G_Date">
        <el-date-picker
            v-model="userDate"
            type="daterange"
            align="right"
            unlink-panels
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            format="yyyy年MM月dd日"
            value-format="yyyy-MM-dd"
            @change="changeDate"
            >
        </el-date-picker>
    </div>
</template>
<script>
export default {
    data(){
        return {
            userDate:""
            
        }
    },
    methods:{
        changeDate:function(e){
           this.$emit("faithDate",e)
        }
    },
    mounted:function(){
       // this.$emit('userDate',this.userDate)
    }
}
</script>
